import {Button, Snackbar} from "@material-ui/core";
import * as React from 'react';
import {Link} from "react-router-dom";

class AppointmentSuccess extends React.Component {

    public render() {
        return (
            <div style={{padding: "24px"}}>
                <div style={{textAlign: "center", padding: "24px", fontSize: 24}}>
                    恭喜你,预约成功
                </div>
                <div>
                    &nbsp; &nbsp;&nbsp;&nbsp;预约订单已经生效,不要忘了按时就诊.取消预约请提前三天取消,就诊日
                    之前三天以内的预约无法取消,请知悉.
                </div>
                <Snackbar open={true} style={{padding: "24px", textAlign: "center"}}>
                    <Link to={{
                        pathname: "/"
                    }} className={"none-link"}>
                        <Button variant="contained" color="primary" className={""}>
                            我知道了
                        </Button>
                    </Link>
                </Snackbar>

            </div>
        );
    }
}

export default AppointmentSuccess;